<?php
	$id=(isset($_GET['a']))?$_GET['a']:0;
	require 'lj.php';
	$sql="delete from t_message where id={$id}";
	$rs=$db->query($sql);
	if ($rs==true){
	    header("location:index.php");
	}else{
	    echo "<script language='javascript'>";
	    echo "alert('留言删除失败！');";
	    echo "window.location.herf='index.php';";
	    echo "</script>";
	}
	$db->close();